L-Py, an open L-systems framework in Python
نویسندگان
چکیده
L-systems were conceived as a mathematical framework for modeling growth of plants. In this paper, we present L-Py, a simulation software that mixes L-systems construction with the Python high-level modeling language. In addition to this software module, an integrated visual development environment has been developed that facilitates the creation of plant models. In particular, easy to use optimization tools have been integrated. Thanks to Python and its modular approach, this framework makes it possible to integrate a variety of tools defined in different modeling context, in particular tools from the OpenAlea platform. Additionally, it can be integrated as a simple growth simulation module into more complex computational pipelines. The L-Py development environment The central idea of L-systems consists of the rewriting of a string of modules representing the structure of the plant. The rewriting rules (productions) express the creation and changes of state of the plant modules throughout time. Such rules can be expressed using a dedicated programming language (Prusinkiewicz et al., 99) or by incorporating L-system-based language constructs into existing languages, such as C++ (Karwowski and Prusinkiewicz 03) or Java (Kniemeyer and Kurth, 08). In this work, we explore the use of the Python language as support for L-systems. Indeed, Python offers a powerful modeling language with high level structures and constructs. It is interpreted and makes it possible to explore easily and interactively the various complex structures involved in a program. Integrating L-systems in Python – We followed similar methodology than lpfg (Karwowski and Prusinkiewicz, 03). L-systems constructs are integrated into regular python code. In a first part of the L-Py code of a model, modules can optionally be declared possibly with parameter names and global properties using the following syntax.
منابع مشابه
L-Py: An L-System Simulation Framework for Modeling Plant Architecture Development Based on a Dynamic Language
The study of plant development requires increasingly powerful modeling tools to help understand and simulate the growth and functioning of plants. In the last decade, the formalism of L-systems has emerged as a major paradigm for modeling plant development. Previous implementations of this formalism were made based on static languages, i.e., languages that require explicit definition of variabl...
متن کاملWhen and how an error yields a Dirichlet form
We consider a random variable Y and approximations Yn, n ∈ N, defined on the same probability space with values in the same measurable space as Y . We are interested in situations where the approximations Yn allow to define a Dirichlet form in the space L (PY ) where PY is the law of Y . Our approach consists in studying both biases and variances. The article attempts to propose a general theor...
متن کامل$L$-enriched topological systems---a common framework of $L$-topology and $L$-frames
Employing the notions of the strong $L$-topology introduced by Zhangand the $L$-frame introduced by Yao and the concept of $L$-enrichedtopological system defined in the present paper, we constructadjunctions among the categories {bf St$L$-Top} of strong$L$-topological spaces, {bf S$L$-Loc} of strict $L$-locales and{bf $L$-EnTopSys} of $L$-enriched topological systems. All of theseconcepts are ...
متن کاملseismic-py: Reading seismic data with Python pdfauthor
The field of seismic exploration of the Earth has changed dramatically over the last half a century. The Society of Exploration Geophysicists (SEG) has worked to create standards to store the vast amounts of seismic data in a way that will be portable across computer architectures. However, it has been impossible to predict the needs of the immense range of seismic data acquisition systems. As ...
متن کاملCHARACTERIZATIONS OF (L;M)-FUZZY TOPOLOGY DEGREES
In this paper, characterizations of the degree to which a mapping $mathcal{T} : L^{X}longrightarrow M$ is an $(L, M)$-fuzzy topology are studied in detail.What is more, the degree to which an $L$-subset is an $L$-open set with respect to $mathcal{T}$ is introduced.Based on that, the degrees to which a mapping $f: Xlongrightarrow Y$ is continuous,open, closed or a quotient mapping with respect t...
متن کامل